package com.snek;

import com.snek.command.editor.BoldCommand;
import com.snek.command.editor.HTMLDocument;
import com.snek.command.editor.History;
import com.snek.command.editor.UndoCommand;

public class Main {

    public static void main(String[] args) {
    	var history = new History();
    	var document = new HTMLDocument();
    	document.setContent("Hello World");

    	var boldCommand = new BoldCommand(document, history);
    	boldCommand.execute();
        System.out.println(document.getContent());

        var undoCommand = new UndoCommand(history);
        undoCommand.execute();
        System.out.println(document.getContent());
    }
}
